package com.jsmtr.rms.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.jsmtr.rms.dao.DaoService;
import com.jsmtr.rms.entity.BaseConfig;
import com.jsmtr.rms.service.IConfigService;

@Service
public class ConfigService implements IConfigService {

    @Resource
    private DaoService dao;

    public void setDao(DaoService dao) {
        this.dao = dao;
    }

    @SuppressWarnings("unchecked")
    @Override
    public List<BaseConfig> getConfigs(String groupid) throws Exception {
        return dao.find("from BaseConfig where groupid='" + groupid + "'");
    }

}
